package com.bbg.amyam.web.util.menu;


import java.util.HashMap;
import java.util.List;

public class MenuContainer {

	private final static String SCHOOL_MENU_XML="SchoolMenu.xml";
	private static HashMap<String, List<MenuItem>> allMenus=new HashMap<String, List<MenuItem>>();
	public static List<MenuItem> getSchoolMenus(){
		List<MenuItem> menus=allMenus.get(SCHOOL_MENU_XML);
		if(menus==null){
			XMLMenuItemImporter importer=new XMLMenuItemImporter(SCHOOL_MENU_XML);
			menus=importer.getReportItems();
			allMenus.put(SCHOOL_MENU_XML, menus);
		}
		return menus;
	}
}